package com.srxz.personnelsystem.system.repository;

import com.srxz.personnelsystem.system.entity.UserInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

@Repository
public interface UserInfoRepository extends JpaRepository<UserInfo, String> ,JpaSpecificationExecutor<UserInfo> {
    public UserInfo findFirstByIdcardAndDeleteTimeIsNull(String idcard);

    public UserInfo findFirstByIdcardAndDeleteTimeIsNullAndStatusNot(String idcard, Integer status);

}
